<h1> ICS Students' Academic Information System : Modify Basic Information (Student) </h1>

	<?php
		echo form_open('student/modify_student_basicinfo'); 
	?>
	
	<table>
	
		<tr>
			<td width="140px"><?php echo form_label('Name: ');?></td>
			<td>
				<?php echo $name; ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Student Number: ');?></td>
			<td>
				<?php echo $student_no; ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Provincial Address: ', 'prov_address');?></td>
			<td>
				<?php 
					$data = array(
						'name'        => 'prov_address',
						'id'          => 'prov_address',
						'value'       =>  $provincial_address,
						'rows'  	  => '3',
						'cols'        => '30',
						'style'       => 'width:85%',
					);
					echo form_textarea($data);
				?>
			</td>
			<td>
				<?php echo form_error('prov_address'); ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('College Address: ', 'col_address');?></td>
			<td>
				<?php 
					$data = array(
						'name'        => 'col_address',
						'id'          => 'col_address',
						'value'       =>  $college_address,
						'rows'  	  => '3',
						'cols'        => '30',
						'style'       => 'width:85%',
					);
					echo form_textarea($data);
				?>
			</td>
			<td>
				<?php echo form_error('col_address'); ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Mobile Number: ','mobile_no');?></td>
			<td>
				<?php 
					$data = array(
						'name'        => 'mobile_no',
						'id'          => 'mobile_no',
						'value'       =>  $mobile_number,
						'maxlength'   => '11',
						'size'        => '12',
						'style'       => 'width:85%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_error('mobile_no'); ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Birthday: ');?></td>
			<td>
				<?php
					$options = array(
							'01' => 'January',
							'02' => 'February',
							'03' => 'March',
							'04' => 'April',
							'05' => 'May',
							'06' => 'June',
							'07' => 'July',
							'08' => 'August',
							'09' => 'September',
							'10' => 'October',
							'11' => 'November',
							'12' => 'December',
						);
					
					echo form_dropdown('month',$options,$a0);
				?>
				<?php
					$options = array(
							'01' => '01',
							'02' => '02',
							'03' => '03',
							'04' => '04',
							'05' => '05',
							'06' => '06',
							'07' => '07',
							'08' => '08',
							'09' => '09',
							'10' => '10',
							'11' => '11',
							'12' => '12',
							'13' => '13',
							'14' => '14',
							'15' => '15',
							'16' => '16',
							'17' => '17',
							'18' => '18',
							'19' => '19',
							'20' => '20',
							'21' => '21',
							'22' => '22',
							'23' => '23',
							'24' => '24',
							'25' => '25',
							'26' => '26',
							'27' => '27',
							'28' => '28',
							'29' => '29',
							'30' => '30',
							'31' => '31',
						);
						
					echo form_dropdown('day',$options,$a1);
				?>
				<?php
					$options = array(
						'2012' => '2012',
						'2011' => '2011',
						'2010' => '2010',
						'2009' => '2009',
						'2008' => '2008',
						'2007' => '2007',
						'2006' => '2006',
						'2005' => '2005',
						'2004' => '2004',
						'2003' => '2003',
						'2002' => '2002',
						'2001' => '2001',
						'2000' => '2000',
						'1999' => '1999',
						'1998' => '1998',
						'1997' => '1997',
						'1996' => '1996',
						'1995' => '1995',
						'1994' => '1994',
						'1993' => '1993',
						'1992' => '1992',
						'1991' => '1991',
						'1990' => '1990',
						'1989' => '1989',
						'1988' => '1988',
						'1987' => '1987',
						'1986' => '1986',
						'1985' => '1985',
						'1984' => '1984',
						'1983' => '1983',
						'1982' => '1982',
						'1981' => '1981',
						'1980' => '1980',
						);
					echo form_dropdown('year',$options,$a2);
				?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Email Address: ','email');?></td>
			<td>
				<?php 
					$data = array(
						'name'        => 'email',
						'id'          => 'email',
						'value'       =>  $email,
						'maxlength'   => '30',
						'size'        => '12',
						'style'       => 'width:85%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_error('email'); ?>
			</td>
		</tr>
	</table>
	<?php
		$data = array(
			'value' => 'Save',
			); 
		echo form_submit($data);
	?>
	<?php echo form_close(); ?>

	<?php echo anchor('student/index','Back to Home Page');?> </br>
	<?php echo anchor('student/logout','Logout');?>